import { request } from "@/utils/service"
// 后台车辆违章管理
export function getCarViolationList(data: any) {
  return request({
    url: "/bg/carViolation/getList",
    method: "post",
    data
  })
}
//保存或修改
export function saveOrUpdateCarViolation(data: any) {
  return request({
    url: "/bg/carViolation/saveOrUpdate",
    method: "post",
    data
  })
}

//详情
export function getCarViolationDetails(data: any) {
    return request({
      url: "/bg/carViolation/getById",
      method: "post",
      data
    })
}

//根据id删除
export function deleteCarViolationById(data: any) {
    return request({
      url: "/bg/carViolation/deleteById",
      method: "post",
      data
    })
}
